package com.gem.growingtree.activity;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.Window;

public class LogoActivity extends Activity {
	private final int SPLASH_DISPLAY_LENGHT = 3000;// 延迟六秒

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_logo);

		new Handler().postDelayed(new Runnable() {

			@Override
			public void run() {
				Intent logIntent = new Intent(LogoActivity.this,
						LoginActivity.class);
				startActivity(logIntent);
				finish();
			}
		}, SPLASH_DISPLAY_LENGHT);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.logo, menu);
		return true;
	}

}
